package com.maben.mybatis.service.impl;

import com.maben.mybatis.mapper.ClassesMapper;
import com.maben.mybatis.pojo.Classes;
import com.maben.mybatis.service.ClassesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class ClassesServiceImpl implements ClassesService {
    @Resource
    private ClassesMapper classesMapper;

    @Override
    public List<Classes> queryClassesSelective0(Map<String, Object> cxMap) throws Exception {
        if (cxMap==null){
            return new ArrayList<>();
        }
        return classesMapper.queryClassesSelective0(cxMap);
    }
    @Override
    public List<Classes> queryClassesSelective1(Map<String, Object> cxMap) throws Exception {
        if (cxMap==null){
            return new ArrayList<>();
        }
        return classesMapper.queryClassesSelective1(cxMap);
    }

    @Override
    public List<Classes> queryClassesSelective2(Map<String, Object> cxMap) throws Exception {
        if (cxMap==null){
            return new ArrayList<>();
        }
        return classesMapper.queryClassesSelective2(cxMap);
    }
}
